package com.leon.android.common.extensions


//inline fun <reified T : BaseViewModel> Fragment.getViewModel(): T {
//    return ViewModelProviders.of(this).get(T::class.java)
//}
//
//inline fun <reified T : BaseViewModel> Fragment.getViewModel(viewModelFactory: ViewModelProvider.Factory): T {
//    return ViewModelProviders.of(this, viewModelFactory).get(T::class.java)
//}
//
//inline fun <reified T : AndroidViewModel> Fragment.getViewModelByActivity(): T {
//    return ViewModelProviders.of(this.requireActivity()).get(T::class.java)
//}
//
//inline fun <reified T : AndroidViewModel> Fragment.getViewModelByActivity(viewModelFactory: ViewModelProvider.Factory?): T {
//    return ViewModelProviders.of(this.requireActivity(), viewModelFactory).get(T::class.java)
//}
//
//fun <T : AndroidViewModel> Fragment.getViewModelByActivity(clazz: Class<T>,viewModelFactory: ViewModelProvider.Factory?): T {
//    return ViewModelProviders.of(this.requireActivity(), viewModelFactory).get(clazz)
//}